package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.AttrEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品属性
 * 
 * @author huyulu
 * @email 1085068942@qq.com
 * @date 2021-11-26 22:16:12
 */
@Mapper
public interface AttrDao extends BaseMapper<AttrEntity> {

    /**
     * 在指定的所有规格属性中，挑出可以被检索的属性
     * @author 胡菜鸡
     * @date 2021/12/31 12:00
     */
    List<Long> selectSearchAttrIds(@Param("attrIds") List<Long> attrIds);
}
